<?php
//
// This is the VIEW section:
//
wp_enqueue_script('json');
wp_enqueue_script('swfobject');
get_header();
?>
<script type="text/javascript">
swfobject.embedSWF("<?php echo SM_OFC_INC_URL?>open-flash-chart.swf", "chart01", "830", "350", "9.0.0","expressInstall.swf",{"get-data":"get_data01"});
swfobject.embedSWF("<?php echo SM_OFC_INC_URL?>open-flash-chart.swf", "chart02", "830", "350", "9.0.0","expressInstall.swf",{"get-data":"get_data02"});
</script>

<script type="text/javascript">
var data01 = <?php echo $data01?>;
var data02 = <?php echo $data02?>;

function get_data01(){
	return JSON.stringify(data01);
}

function get_data02(){
	return JSON.stringify(data02);
}
</script>

<h2>Courbes de votes</h2>
<div id="chart01"></div>
<div id="chart02"></div>

<?php
get_footer()
?>